package com.dominator.service;

import com.dominFramework.core.typewrap.Dto;
import com.dominator.socket.SocketMessage;
import com.dominator.utils.exception.ApiException;

public interface ApiGuaService {

    /**
     * 刮机登陆
     * @param dto
     * @return
     * @throws ApiException
     */
     SocketMessage  login(Dto dto) throws ApiException;



    /**
     * 扫描物流码
     * @param dto
     * @return
     * @throws ApiException
     */
    SocketMessage  scanTicket (Dto dto) throws ApiException;




    /**
     * 刮开一张票
     * @param dto
     * @return
     * @throws ApiException
     */
    SocketMessage  scratchTicket (Dto dto) throws ApiException;



    /**
     * 刮票结束
     * @param dto
     * @return
     * @throws ApiException
     */
    SocketMessage  scratchTicketOver(Dto dto) throws ApiException;



    /**
     * 按下识别按钮
     * @param dto
     * @return
     * @throws ApiException
     */
    SocketMessage  pressGunButton(Dto dto) throws ApiException;


    /**
     * 获取识别手机图片
     * @param dto
     * @return
     * @throws ApiException
     */
    SocketMessage  takeResultPhoto(Dto dto) throws ApiException;


    /**
     * 识别手机图片
     * @param dto
     * @return
     * @throws ApiException
     */
    SocketMessage  ocrResultPhoto(Dto dto) throws ApiException;



    /**
     * 识别结束
     * @param dto
     * @return
     * @throws ApiException
     */
    SocketMessage  ticketOver(Dto dto) throws ApiException;


}
